

'use strict';
const express=require('express');
const path=require('path');

const stuRouter=express.Router();

const stuCtrl=require(path.join(__dirname,"../controllers/stuCtroller.js"));

const mutipart = require('connect-multiparty');

const mutipartMiddeware = mutipart();


stuRouter.get('/stu_list',stuCtrl.stuList);

stuRouter.get('/stu_edit/:stu_id',stuCtrl.stuEdit);

stuRouter.post('/stu_edit/:stu_id',mutipartMiddeware,stuCtrl.stutEditData);

module.exports=stuRouter;